package com.qtt.app.service;

import com.qtt.app.entity.ReturnInfo.ReturnCoupon;

import java.util.List;

public interface AppCouponService {
    List<ReturnCoupon> getCouponByUserId(Long userId,int flag);

    int addCoupon(String couponName, String timeRange, Float discount, String discountType, String couponType, String suitCourse);

    int addMyCoupon(Long userId, Integer couponId,Integer isUsed);

    int exchangeCoupon(Long userId, String couponNumber, Integer isUsed);

    List<ReturnCoupon> getCourseCoupon(Long userId, String generalId);
}
